package com.ruoyi.hqfinance.service.impl;

import com.github.pagehelper.PageHelper;
import com.ruoyi.hqfinance.domain.HqPaidSettlementDetail;
import com.ruoyi.hqfinance.domain.vo.HqPaidSettlementDetailVo;
import com.ruoyi.hqfinance.mapper.HqPaidSettlementDetailMapper;
import com.ruoyi.hqfinance.service.HqPaidSettlementDetailService;
import com.ruoyi.logistic.domain.PageDate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class HqPaidSettlementDetailServiceImpl implements HqPaidSettlementDetailService {
    @Autowired
    private HqPaidSettlementDetailMapper hqPaidSettlementDetailMapper;
    @Override
    public List<HqPaidSettlementDetail> selectAll(PageDate pageDate) {
        PageHelper.startPage(pageDate);
        return hqPaidSettlementDetailMapper.selectAll();
    }

    @Override
    public Boolean insert(HqPaidSettlementDetail hqPaidSettlementDetail) {
        return hqPaidSettlementDetailMapper.insert(hqPaidSettlementDetail);
    }

    @Override
    public Boolean update(HqPaidSettlementDetail hqPaidSettlementDetail) {
        return hqPaidSettlementDetailMapper.update(hqPaidSettlementDetail);
    }

    @Override
    public Boolean deleteById(Integer id) {
        return hqPaidSettlementDetailMapper.deleteById(id);
    }

    @Override
    public List<HqPaidSettlementDetail> search(HqPaidSettlementDetailVo hqPaidSettlementDetailVo) {
        PageHelper.startPage(hqPaidSettlementDetailVo.getPageDate());
        return hqPaidSettlementDetailMapper.search(hqPaidSettlementDetailVo);
    }
}
